package com.zhiyou100.mapper;

import java.sql.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhiyou100.model.Tea;

@Mapper
public interface TeaMapper extends BaseMapper<Tea> {
	public int findMaxIndex();
	//查询我上一条的内容
	public Tea findUpIndex(Integer id);
	//查询我下一条的内容
	public Tea findDownIndex(Integer id);
	public List<Tea> findByName(String name);
	public List<Tea> findByTea(Tea tea);
	public List<Tea> findByTime(@Param("begin") Date begin,@Param("end") Date end);
	public List<Tea> findByAll(@Param("begin") Date begin,@Param("end") Date end,@Param("name") String name,@Param("sex") String sex);
}
